package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 大转盘记录表 luck_wheel_record
 *
 * @author houyijun
 * @date 2019-03-20
 */
public class LuckWheelRecord extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 关联用户 */
	private Integer userId;
	/** 奖金数量 */
	private BigDecimal bonus;
	/** 幸运转盘id */
	private Integer luckId;
	/** 奖励内容 */
	private String rewardContent;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 数据状态 0 正常 2 删除 */
	private Integer delFlag;
	private String nickName;
	private String phone;

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setBonus(BigDecimal bonus){
		this.bonus = bonus;
	}

	public BigDecimal getBonus(){
		return bonus;
	}
	public void setLuckId(Integer luckId){
		this.luckId = luckId;
	}

	public Integer getLuckId(){
		return luckId;
	}
	public void setRewardContent(String rewardContent){
		this.rewardContent = rewardContent;
	}

	public String getRewardContent(){
		return rewardContent;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("bonus", getBonus())
            .append("luckId", getLuckId())
            .append("rewardContent", getRewardContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
